//
//  JianjieCell.m
//  diaoyuren
//
//  Created by 钓鱼人 on 16/3/3.
//  Copyright © 2016年 game. All rights reserved.
//

#import "JianjieCell.h"

@implementation JianjieCell

- (void)awakeFromNib {
    self.title.font = font(SCREEN_WIDTH*0.04);
    
    self.title.numberOfLines = 0;
    self.selectionStyle  = UITableViewCellSelectionStyleNone;
}

-(void)setLabText:(NSString *)labText{
    _labText = labText;

    self.title.text = _labText;
    CGSize size = CGSizeMake(SCREEN_WIDTH, 0);
    self.cellhight = [Manager CountTextWhithSize:size AndString:_title.text AndfFontSize:SCREEN_WIDTH*0.05];
    
    if (self.cellhight<30) {
        self.cellhight = 30;
    }
    
    if (self.cellhight>100) {
        self.cellhight = 100;
    }
    
    if (labText.length == 0) {
        self.cellhight = -1;
    }
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end